<?php require("header.phtml");?>
<form method="post" id="news" name="news" action="{$CMS->vars['root_domain']}/?site=news&id={$data['news_id']}&act=edit_do&page={$CMS->input['page']}" onSubmit="return check_form(this.id);" enctype="multipart/form-data">
<div class="block_wrapper">
<div class="block_top"><p class="align_right_i"><a href="{$CMS->vars['root_domain']}/?site=news{$CMS->class->search->url_return}">&laquo; Trở lại trang trước</a></p>Thêm tin tin<b>Tên tin tức</b></div>
<div class="block_mid">
<table width="100%" cellspacing="0" cellpadding="4">
  <tr>
  	<th colspan="2">Thông tin cần thiết</th>
  </tr>
  <tr>
    <td class="left25"><b>Tiêu đề</b></td>
    <td><input class="input_text" size="45" type="text" name="news_name" value="" emsg=""></td>
  </tr>
  <tr>
    <td class="left25"><b>Chuyên mục</b></td>
    <td><select class="input_text" name="cat_id" defaultvalue="{$data['cat_id']}"></select></td>
  </tr>
   
  <tr>
    <td class="left25"><b>Hình đại diện</b>:</td>
    <td><input class="input_text" type="file" name="file_upload" size="30"> <br /></td>
  </tr>
  <tr>
    <td class="left25"><b>Nội dung</b></td>
    <td><textarea class="input_textarea" name="news_content" cols="60" rows="5" emsg=""></textarea></td>
  </tr>
  <tr>
    <td style="width: 20%;" class="left25"><b>Upload hình ảnh</b></td>
    <td>
EOF;

	<?php //$CMS->attach->form("news", "{$data['news_id']}"); ?>
	
	</td>
  </tr>
  <tr>
  	<th colspan="2">Thông tin thêm</th>
  </tr>
  <tr>
    <td class="left25"><b>Hiển thị</b></td>
    <td><select class="input_text" name="news_display" defaultvalue=""></select></td>
  </tr>
</table>
</div>
</div>
<div class="block_desc_bottom_submit">
	<input class="input_submit" type="submit" name="submit" value="Thêm"> 
</div>
<div class="block_bottom"></div>
</form>
<script language="javascript">rebuild_form("news",1);</script>
<?php require("footer.phtml");?>